[mirrors]
http://download.savannah.gnu.org/releases/leafpad/leafpad-0.8.18.tar.gz

[vars]
filesize=289079
sha512=315f5541dfe8d519ea832ad8b13b034a5ac173f8b9c0de7e3f774780b4ef42f2fab29e3ef847a1c15daf544f85308b14f53a79d568ca4e89f5840ce8bd675bc4
desc='minimalistic GTK+ text editor. useful to copy text terminal <-> GUI apps'

[deps]
gtk+2

[build]
patch -p1 < "$K"/leafpad-savebug.patch
patch -p1 < "$K"/leafpad-taskbar-icon.patch
[ -n "$CROSS_COMPILE" ] && xconfflags="--host=$($CC -dumpmachine)"
CFLAGS="-D_GNU_SOURCE $optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
./configure -C --prefix="$butch_prefix" $xconfflags \
  --disable-nls

for i in po ; do
	printf 'all:\n\ttrue\ninstall:\n\ttrue\nclean:\n\ttrue\n' > "$i"/Makefile
done

chmod +x install-sh
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
